import instance from "@/axios";

// 获取权限数据的树形结构列表
export const authTree = ()=>instance.get("/auth/tree")

// 获取权限数据列表
export const authList = ()=>instance.get("/auth/list")

// 添加权限
export const addAuth = (authForm)=>instance.post("/auth/addAuth",authForm)

// 根据id获取权限信息
export const getAuthById = (id)=>instance.get("/auth/getById/"+id)

// 根据id删除权限信息
export const deleteAuth = (id)=>instance.delete("/auth/delete/"+id)




